package com.malty.mall.domain.entity.pms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.malty.mall.domain.dto.req.pms.PmsProductCateParam;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @author malty
 */
@Data
@NoArgsConstructor
@TableName("pms_product_category")
public class PmsProductCategory {
    private Long id;
    private Long parentId;
    private String name;
    private Integer level;
    private Integer showStatus;
    private Integer navStatus;
    private String description;
    private Date createTime;
    private Date updateTime;

    public PmsProductCategory(PmsProductCateParam cateParam) {
        BeanUtils.copyProperties(cateParam, this);
    }
}
